<%@ page language="java"  pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	   <title>美瀛商旅-员工中心</title>
	   <script type="text/javascript">
	   	$(function(){
	   		setIntegeCheck("c_1");
	   		setIntegeCheck("c_2");
	   		setEmptyCheck("c_1:c_2");
	   		$("#c_2").blur(function(){
	   			
	   			var backMoney=$("#c_1").val();
	   			if(backMoney!=""){
	   				var fee=$(this).val();
	   				backMoney=parseInt(backMoney);
	   				fee=parseInt(fee);
	   				var price='${bOrder.price}';
	   				if(price!=""){
	   					price=parseInt(price);
	   					var total=backMoney+fee;
	   					if(total!=price){
	   						alert("退款总金额必须与票价相等");
	   						$("#c_1").focus();
	   					}
	   				}
	   			}
	   		});
	   	});
	   </script>
  </head>
  <body>
    <ul>
          <li class="titleonly">
          <img src="${ctxPath}/css/style/base/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;国内退款操作<a href="../fares/tk_order.htm"><img src="${ctxPath}/css/style/base/image/backtrack.gif" width="14" height="14" align="absmiddle" class="backtrack"/>返回</a>
        </li>
        </ul>
	<ul>
			<form method="post" id="bOrder" action="bOrders.do?cmd=returnMoney&id=${param['id']}">	
				<div id="check_explain">
				
            	<div id="title_c">
                <li>确认操作</li>
          		</div>
          
                <div id="content_c">
                
                <li style="color:#F00; font-weight:bold">订单金额：¥${bOrder.price}待退款金额：<span id="change_1">¥${bOrder.price}</span>
				<input name="backMoney" type="text" id="c_1" class="inputbox40" value="${bOrder.price}" style="display:none" /> 
				<a onclick='document.getElementById("c_1").style.display="inline";document.getElementById("change_1").style.display="none"' style="color:#09F" >修改</a>            </li>
				<%-- <li style="color:#F00; font-weight:bold">退票手续费<span id="change_1">¥${bOrder.refundFee}</span>
				<input name="fee" type="text" id="c_2" class="inputbox40" value="${bOrder.refundFee}" style="display:none" /> 
				<a onclick='document.getElementById("c_2").style.display="inline";document.getElementById("change_2").style.display="none"' style="color:#09F" >修改</a>            </li> --%>
                <li>线上退款<input type="radio" name="returnType" value="1" checked="checked"> </li>
                <li>线下退款<input name="returnType" type="radio" value="2" /> </li>
                <li class="c_ready">你真的确认退款操作吗?</li>
                </div>
            	</div>
            	<div id="check_remark">
                    <div id="title_c">
                    <li>备注：</li>
                    </div>
                    <div id="content_c">
                    <li>&nbsp;&nbsp; </li>
                    <div id="clear">
                    	<textarea rows="50px" cols="50px" style="width:700px;height:100px" name="remark">${bOrder.backnote}</textarea>
                    </div>
                    </div>
                </div>
                
                <input name="Submit3" type="submit" class="inputsubmit" value="确认" style="margin-left:400px"/>
                <input name="Submit3" type="button" onclick="javascript:history.back()" class="inputsubmit" value="取消" style="margin-left:100px"/>
                	
				</form>
				</ul>
  </body>
</html>